<div class="gru-bug frame border">
  <p class="gru-bug style title">
    <%= @bug.title %>
    <span class="gru-bug style action"><%= link_to (t :edit, :scope => [:helpers, :navigation, :bug]), edit_project_bug_path(params[:project_id], @bug) %></span>
  </p>
  <div class="gru-bug style">
    <p>
      <%= @bug.description %>
    </p>
    <p>
      <span class="gru-bug p1"><b><%= t :priority, :scope => [:helpers, :headlines, :bug] %>:</b></span>
      <span class="gru-bug p2"><%= t @bug.priority, :scope => "activerecord.attributes.values.bug.priorities" %></span>
      <span class="gru-bug p3"><b><%= t :author, :scope => [:helpers, :headlines, :bug] %>:</b></span>
      <span class="gru-bug p4"><%= @bug.author.alias %></span>
      <span class="gru-bug p5"><b><%= t :created, :scope => [:helpers, :headlines, :bug] %>:</b></span>
      <span class="gru-bug p6"><%= l(@bug.created_at, :format => :short)%></span>
    </p>
    <p>
      <span class="gru-bug p1"><b><%= t :status, :scope => [:helpers, :headlines, :bug] %>:</b></span>
      <span class="gru-bug p2"><%= t @bug.status, :scope => "activerecord.attributes.values.bug.statuses" %></span>
      <span class="gru-bug p3"><b><%= t :processor, :scope => [:helpers, :headlines, :bug] %>:</b></span>
      <span class="gru-bug p4"><%= @bug.processor.alias %></span>
      <span class="gru-bug p5"><b><%= t :updated, :scope => [:helpers, :headlines, :bug] %>:</b></span>
      <span class="gru-bug p6"><%= l(@bug.updated_at, :format => :short) %></span>
    </p>
  </div>
</div>

<div class="gru-bug frame inline">
  <br/>
  <b><%= t :files, :scope => [:helpers, :headlines, :bug] %>:</b>
  <span class="gru-bug style action2">
    <%= link_to (t :add_file, :scope => [:helpers, :navigation, :bug]), new_project_bug_dataobject_path(params[:project_id], @bug.id) %>
  </span>
  <hr/>
</div>

<%= render :partial => "layouts/file_attachment" %>

<div class="gru-bug frame inline">
  <br/>
  <b><%= t :comments, :scope => [:helpers, :headlines, :bug] %>:</b>
  <span class="gru-bug style action2">
    <%= link_to (t :answer, :scope => [:helpers, :navigation, :bug]), new_project_topic_reply_path(params[:project_id], @bug.topic, :bug_id => @bug.id) %>
  </span>
  <hr/>
</div>

<% if @bug.topic.replies.empty? %>
  <div class="gru-topics frame">
    <%= t :no_comments, :scope => [:helpers, :messages, :bug] %>
  </div>
<% else %>
  <%= render :partial => "replies/reply", :collection => @bug.topic.replies.order("created_at desc") %>
<% end %>